package org.example.controller;

import org.example.entity.SysMenuByName;
import org.example.service.ShowMenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/showmenu")
public class ShowMenuController {
    @Resource
    private ShowMenuService showMenuService;
    @GetMapping("{id}")
    public SysMenuByName sysMenuByName(@PathVariable("id") Integer id){
      return   showMenuService.sysMenuByName(id);
    }
}
